﻿
using System.Collections.Generic;
namespace Natural.Providers
{
    public class Modeler
    {
        private static Dictionary<string, int> statuses = new Dictionary<string, int>();
        
        public static void AddStatus(string entity, string name, int value)
        {
            string key = entity.ToUpper() + "_" + name.ToUpper();
            if (statuses.ContainsKey(key))
                statuses[key] = value;
            else
                statuses.Add(key, value); 
        }
        public static int? Status(string entity, string name)
        {
            string key = entity.ToUpper() + "_" + name.ToUpper();
            if (statuses.ContainsKey(key)) return statuses[key];
            return null;
        }
    }
}
